/*
编写 : Hexh
时间 : 2013-4-26 11:50:42
*/
using System;
using System.Collections;
using System.Text;
using HMIS.FrameWork.DomainBase;

namespace HMIS.Infrastructure.Core.Entities
{
	/// <summary>
	///	the entity of InfraMxsq
	/// </summary>
	public class InfraMxsq : InputItem
	{

		#region Public Properties

		/// <summary>
		/// 流水号代码
		/// </summary>
		public virtual string Sqnocd { get; set; }

		/// <summary>
		/// 部门机构编号
		/// </summary>
		public virtual string Sqnodp { get; set; }

		/// <summary>
		/// 编号日期
		/// </summary>
		public virtual string Sqnodt { get; set; }

		/// <summary>
		/// 最大编号
		/// </summary>
		public virtual int Maxisq { get; set; }

		/// <summary>
		/// 备用前缀
		/// </summary>
		public virtual string Bksqpx { get; set; }

		/// <summary>
		/// 输出格式
		/// </summary>
		/// <returns></returns>
		public override string ToString()
		{
			return Sqnocd.ToUpper() + Sqnodp + Sqnodt + Maxisq.ToString().PadLeft(4, '0');
		}

		#endregion
	}
}
